package com.principle.strategy;

public class ToyDuck extends Duck{
    @Override
    void display() {
        System.out.println("这是玩具鸭");
    }

    @Override
    public void quack() {
        System.out.println("不能叫");
    }

    @Override
    public void swim() {
        System.out.println("不能游泳");
    }

    @Override
    public void fly() {
        System.out.println("不能飞");
    }
}
